Optimal. Leaf size=319 \[ -\frac {\left (2 \sqrt {a}-5 \sqrt {b}\right ) \tanh ^{-1}\left (\frac {\sqrt {\sqrt {a}-\sqrt {b}} \tanh (c+d x)}{\sqrt [4]{a}}\right )}{64 a^{3/4} \left (\sqrt {a}-\sqrt {b}\right )^{5/2} b^{3/2} d}+\frac {\left (2 \sqrt {a}+5 \sqrt {b}\right ) \tanh ^{-1}\left (\frac {\sqrt {\sqrt {a}+\sqrt {b}} \tanh (c+d x)}{\sqrt [4]{a}}\right )}{64 a^{3/4} \left (\sqrt {a}+\sqrt {b}\right )^{5/2} b^{3/2} d}-\frac {(a+5 b) \tanh (c+d x)}{32 a (a-b)^2 b d}-\frac {\tanh ^3(c+d x)}{32 a (a-b) b d}+\frac {\tanh ^9(c+d x)}{8 a d \left (a-2 a \tanh ^2(c+d x)+(a-b) \tanh ^4(c+d x)\right )^2}-\frac {\text {sech}^2(c+d x) \tanh ^5(c+d x)}{32 a b d \left (a-2 a \tanh ^2(c+d x)+(a-b) \tanh ^4(c+d x)\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.38, antiderivative size = 319, normalized size of antiderivative = 1.00, number of steps
used = 9, number of rules used = 7, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.292, Rules used = {3296, 1289, 12,
1134, 1293, 1180, 214} \begin {gather*} -\frac {\left (2 \sqrt {a}-5 \sqrt {b}\right ) \tanh ^{-1}\left (\frac {\sqrt {\sqrt {a}-\sqrt {b}} \tanh (c+d x)}{\sqrt [4]{a}}\right )}{64 a^{3/4} b^{3/2} d \left (\sqrt {a}-\sqrt {b}\right )^{5/2}}+\frac {\left (2 \sqrt {a}+5 \sqrt {b}\right ) \tanh ^{-1}\left (\frac {\sqrt {\sqrt {a}+\sqrt {b}} \tanh (c+d x)}{\sqrt [4]{a}}\right )}{64 a^{3/4} b^{3/2} d \left (\sqrt {a}+\sqrt {b}\right )^{5/2}}-\frac {\tanh ^3(c+d x)}{32 a b d (a-b)}+\frac {\tanh ^9(c+d x)}{8 a d \left ((a-b) \tanh ^4(c+d x)-2 a \tanh ^2(c+d x)+a\right )^2}-\frac {(a+5 b) \tanh (c+d x)}{32 a b d (a-b)^2}-\frac {\tanh ^5(c+d x) \text {sech}^2(c+d x)}{32 a b d \left ((a-b) \tanh ^4(c+d x)-2 a \tanh ^2(c+d x)+a\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 214
Rule 1134
Rule 1180
Rule 1289
Rule 1293
Rule 3296
Rubi steps
\begin {align*} \int \frac {\sinh ^8(c+d x)}{\left (a-b \sinh ^4(c+d x)\right )^3} \, dx &=\frac {\text {Subst}\left (\int \frac {x^8 \left (1-x^2\right )}{\left (a-2 a x^2+(a-b) x^4\right )^3} \, dx,x,\tanh (c+d x)\right )}{d}\\ &=\frac {\tanh ^9(c+d x)}{8 a d \left (a-2 a \tanh ^2(c+d x)+(a-b) \tanh ^4(c+d x)\right )^2}+\frac {\text {Subst}\left (\int -\frac {2 b x^8}{\left (a-2 a x^2+(a-b) x^4\right )^2} \, dx,x,\tanh (c+d x)\right )}{16 a b d}\\ &=\frac {\tanh ^9(c+d x)}{8 a d \left (a-2 a \tanh ^2(c+d x)+(a-b) \tanh ^4(c+d x)\right )^2}-\frac {\text {Subst}\left (\int \frac {x^8}{\left (a-2 a x^2+(a-b) x^4\right )^2} \, dx,x,\tanh (c+d x)\right )}{8 a d}\\ &=\frac {\tanh ^9(c+d x)}{8 a d \left (a-2 a \tanh ^2(c+d x)+(a-b) \tanh ^4(c+d x)\right )^2}-\frac {\text {sech}^2(c+d x) \tanh ^5(c+d x)}{32 a b d \left (a-2 a \tanh ^2(c+d x)+(a-b) \tanh ^4(c+d x)\right )}+\frac {\text {Subst}\left (\int \frac {x^4 \left (10 a-6 a x^2\right )}{a-2 a x^2+(a-b) x^4} \, dx,x,\tanh (c+d x)\right )}{64 a^2 b d}\\ &=-\frac {\tanh ^3(c+d x)}{32 a (a-b) b d}+\frac {\tanh ^9(c+d x)}{8 a d \left (a-2 a \tanh ^2(c+d x)+(a-b) \tanh ^4(c+d x)\right )^2}-\frac {\text {sech}^2(c+d x) \tanh ^5(c+d x)}{32 a b d \left (a-2 a \tanh ^2(c+d x)+(a-b) \tanh ^4(c+d x)\right )}-\frac {\text {Subst}\left (\int \frac {x^2 \left (-18 a^2+6 a (a+5 b) x^2\right )}{a-2 a x^2+(a-b) x^4} \, dx,x,\tanh (c+d x)\right )}{192 a^2 (a-b) b d}\\ &=-\frac {(a+5 b) \tanh (c+d x)}{32 a (a-b)^2 b d}-\frac {\tanh ^3(c+d x)}{32 a (a-b) b d}+\frac {\tanh ^9(c+d x)}{8 a d \left (a-2 a \tanh ^2(c+d x)+(a-b) \tanh ^4(c+d x)\right )^2}-\frac {\text {sech}^2(c+d x) \tanh ^5(c+d x)}{32 a b d \left (a-2 a \tanh ^2(c+d x)+(a-b) \tanh ^4(c+d x)\right )}+\frac {\text {Subst}\left (\int \frac {6 a^2 (a+5 b)+6 a^2 (a-13 b) x^2}{a-2 a x^2+(a-b) x^4} \, dx,x,\tanh (c+d x)\right )}{192 a^2 (a-b)^2 b d}\\ &=-\frac {(a+5 b) \tanh (c+d x)}{32 a (a-b)^2 b d}-\frac {\tanh ^3(c+d x)}{32 a (a-b) b d}+\frac {\tanh ^9(c+d x)}{8 a d \left (a-2 a \tanh ^2(c+d x)+(a-b) \tanh ^4(c+d x)\right )^2}-\frac {\text {sech}^2(c+d x) \tanh ^5(c+d x)}{32 a b d \left (a-2 a \tanh ^2(c+d x)+(a-b) \tanh ^4(c+d x)\right )}-\frac {\left (2 a+3 \sqrt {a} \sqrt {b}-5 b\right ) \text {Subst}\left (\int \frac {1}{-a+\sqrt {a} \sqrt {b}+(a-b) x^2} \, dx,x,\tanh (c+d x)\right )}{64 \sqrt {a} \left (\sqrt {a}+\sqrt {b}\right )^2 b^{3/2} d}+\frac {\left (\left (2 \sqrt {a}-5 \sqrt {b}\right ) \left (\sqrt {a}+\sqrt {b}\right )^3\right ) \text {Subst}\left (\int \frac {1}{-a-\sqrt {a} \sqrt {b}+(a-b) x^2} \, dx,x,\tanh (c+d x)\right )}{64 \sqrt {a} (a-b)^2 b^{3/2} d}\\ &=-\frac {\left (2 \sqrt {a}-5 \sqrt {b}\right ) \tanh ^{-1}\left (\frac {\sqrt {\sqrt {a}-\sqrt {b}} \tanh (c+d x)}{\sqrt [4]{a}}\right )}{64 a^{3/4} \left (\sqrt {a}-\sqrt {b}\right )^{5/2} b^{3/2} d}+\frac {\left (2 \sqrt {a}+5 \sqrt {b}\right ) \tanh ^{-1}\left (\frac {\sqrt {\sqrt {a}+\sqrt {b}} \tanh (c+d x)}{\sqrt [4]{a}}\right )}{64 a^{3/4} \left (\sqrt {a}+\sqrt {b}\right )^{5/2} b^{3/2} d}-\frac {(a+5 b) \tanh (c+d x)}{32 a (a-b)^2 b d}-\frac {\tanh ^3(c+d x)}{32 a (a-b) b d}+\frac {\tanh ^9(c+d x)}{8 a d \left (a-2 a \tanh ^2(c+d x)+(a-b) \tanh ^4(c+d x)\right )^2}-\frac {\text {sech}^2(c+d x) \tanh ^5(c+d x)}{32 a b d \left (a-2 a \tanh ^2(c+d x)+(a-b) \tanh ^4(c+d x)\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 2.89, size = 331, normalized size = 1.04 \begin {gather*} \frac {\frac {\left (2 \sqrt {a}-5 \sqrt {b}\right ) \left (\sqrt {a}+\sqrt {b}\right )^2 \sqrt {b} \text {ArcTan}\left (\frac {\left (\sqrt {a}-\sqrt {b}\right ) \tanh (c+d x)}{\sqrt {-a+\sqrt {a} \sqrt {b}}}\right )}{\sqrt {a} \sqrt {-a+\sqrt {a} \sqrt {b}}}+\frac {\left (2 a^{3/2} \sqrt {b}+a b-8 \sqrt {a} b^{3/2}+5 b^2\right ) \tanh ^{-1}\left (\frac {\left (\sqrt {a}+\sqrt {b}\right ) \tanh (c+d x)}{\sqrt {a+\sqrt {a} \sqrt {b}}}\right )}{\sqrt {a} \sqrt {a+\sqrt {a} \sqrt {b}}}+\frac {8 b (5 a-14 b+(-2 a+5 b) \cosh (2 (c+d x))) \sinh (2 (c+d x))}{8 a-3 b+4 b \cosh (2 (c+d x))-b \cosh (4 (c+d x))}+\frac {64 a (a-b) b (-6 \sinh (2 (c+d x))+\sinh (4 (c+d x)))}{(-8 a+3 b-4 b \cosh (2 (c+d x))+b \cosh (4 (c+d x)))^2}}{64 (a-b)^2 b^2 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 2.50, size = 535, normalized size = 1.68
method | result | size |
derivativedivides | \(\frac {-\frac {512 \left (\frac {a \left (a +5 b \right ) \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{8192 b \left (a^{2}-2 a b +b^{2}\right )}-\frac {\left (5 a +49 b \right ) a \left (\tanh ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8192 b \left (a^{2}-2 a b +b^{2}\right )}+\frac {3 \left (3 a^{2}+55 a b -48 b^{2}\right ) \left (\tanh ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8192 b \left (a^{2}-2 a b +b^{2}\right )}-\frac {\left (5 a^{2}+377 a b -784 b^{2}\right ) \left (\tanh ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8192 b \left (a^{2}-2 a b +b^{2}\right )}-\frac {\left (5 a^{2}+377 a b -784 b^{2}\right ) \left (\tanh ^{9}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8192 b \left (a^{2}-2 a b +b^{2}\right )}+\frac {3 \left (3 a^{2}+55 a b -48 b^{2}\right ) \left (\tanh ^{11}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8192 b \left (a^{2}-2 a b +b^{2}\right )}-\frac {\left (5 a +49 b \right ) a \left (\tanh ^{13}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8192 b \left (a^{2}-2 a b +b^{2}\right )}+\frac {a \left (a +5 b \right ) \left (\tanh ^{15}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8192 b \left (a^{2}-2 a b +b^{2}\right )}\right )}{\left (a \left (\tanh ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-4 a \left (\tanh ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+6 a \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-16 b \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-4 a \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+a \right )^{2}}-\frac {\munderset {\textit {\_R} =\RootOf \left (a \,\textit {\_Z}^{8}-4 a \,\textit {\_Z}^{6}+\left (6 a -16 b \right ) \textit {\_Z}^{4}-4 a \,\textit {\_Z}^{2}+a \right )}{\sum }\frac {\left (\left (a +5 b \right ) \textit {\_R}^{6}+\left (5 a -47 b \right ) \textit {\_R}^{4}+\left (-5 a +47 b \right ) \textit {\_R}^{2}-a -5 b \right ) \ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-\textit {\_R} \right )}{\textit {\_R}^{7} a -3 \textit {\_R}^{5} a +3 \textit {\_R}^{3} a -8 \textit {\_R}^{3} b -\textit {\_R} a}}{128 b \left (a^{2}-2 a b +b^{2}\right )}}{d}\) | \(535\) |
default | \(\frac {-\frac {512 \left (\frac {a \left (a +5 b \right ) \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{8192 b \left (a^{2}-2 a b +b^{2}\right )}-\frac {\left (5 a +49 b \right ) a \left (\tanh ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8192 b \left (a^{2}-2 a b +b^{2}\right )}+\frac {3 \left (3 a^{2}+55 a b -48 b^{2}\right ) \left (\tanh ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8192 b \left (a^{2}-2 a b +b^{2}\right )}-\frac {\left (5 a^{2}+377 a b -784 b^{2}\right ) \left (\tanh ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8192 b \left (a^{2}-2 a b +b^{2}\right )}-\frac {\left (5 a^{2}+377 a b -784 b^{2}\right ) \left (\tanh ^{9}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8192 b \left (a^{2}-2 a b +b^{2}\right )}+\frac {3 \left (3 a^{2}+55 a b -48 b^{2}\right ) \left (\tanh ^{11}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8192 b \left (a^{2}-2 a b +b^{2}\right )}-\frac {\left (5 a +49 b \right ) a \left (\tanh ^{13}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8192 b \left (a^{2}-2 a b +b^{2}\right )}+\frac {a \left (a +5 b \right ) \left (\tanh ^{15}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8192 b \left (a^{2}-2 a b +b^{2}\right )}\right )}{\left (a \left (\tanh ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-4 a \left (\tanh ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+6 a \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-16 b \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-4 a \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+a \right )^{2}}-\frac {\munderset {\textit {\_R} =\RootOf \left (a \,\textit {\_Z}^{8}-4 a \,\textit {\_Z}^{6}+\left (6 a -16 b \right ) \textit {\_Z}^{4}-4 a \,\textit {\_Z}^{2}+a \right )}{\sum }\frac {\left (\left (a +5 b \right ) \textit {\_R}^{6}+\left (5 a -47 b \right ) \textit {\_R}^{4}+\left (-5 a +47 b \right ) \textit {\_R}^{2}-a -5 b \right ) \ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-\textit {\_R} \right )}{\textit {\_R}^{7} a -3 \textit {\_R}^{5} a +3 \textit {\_R}^{3} a -8 \textit {\_R}^{3} b -\textit {\_R} a}}{128 b \left (a^{2}-2 a b +b^{2}\right )}}{d}\) | \(535\) |
risch | \(\text {Expression too large to display}\) | \(1574\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 20486 vs.
\(2 (263) = 526\).
time = 0.91, size = 20486, normalized size = 64.22 \begin {gather*} \text {too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.49, size = 389, normalized size = 1.22 \begin {gather*} -\frac {a b^{2} e^{\left (14 \, d x + 14 \, c\right )} - 4 \, b^{3} e^{\left (14 \, d x + 14 \, c\right )} - 32 \, a^{2} b e^{\left (12 \, d x + 12 \, c\right )} + 58 \, a b^{2} e^{\left (12 \, d x + 12 \, c\right )} + b^{3} e^{\left (12 \, d x + 12 \, c\right )} + 144 \, a^{2} b e^{\left (10 \, d x + 10 \, c\right )} - 219 \, a b^{2} e^{\left (10 \, d x + 10 \, c\right )} + 60 \, b^{3} e^{\left (10 \, d x + 10 \, c\right )} + 256 \, a^{3} e^{\left (8 \, d x + 8 \, c\right )} - 832 \, a^{2} b e^{\left (8 \, d x + 8 \, c\right )} + 550 \, a b^{2} e^{\left (8 \, d x + 8 \, c\right )} - 175 \, b^{3} e^{\left (8 \, d x + 8 \, c\right )} + 112 \, a^{2} b e^{\left (6 \, d x + 6 \, c\right )} - 533 \, a b^{2} e^{\left (6 \, d x + 6 \, c\right )} + 220 \, b^{3} e^{\left (6 \, d x + 6 \, c\right )} - 32 \, a^{2} b e^{\left (4 \, d x + 4 \, c\right )} + 158 \, a b^{2} e^{\left (4 \, d x + 4 \, c\right )} - 141 \, b^{3} e^{\left (4 \, d x + 4 \, c\right )} - 17 \, a b^{2} e^{\left (2 \, d x + 2 \, c\right )} + 44 \, b^{3} e^{\left (2 \, d x + 2 \, c\right )} + 2 \, a b^{2} - 5 \, b^{3}}{8 \, {\left (a^{2} b^{2} - 2 \, a b^{3} + b^{4}\right )} {\left (b e^{\left (8 \, d x + 8 \, c\right )} - 4 \, b e^{\left (6 \, d x + 6 \, c\right )} - 16 \, a e^{\left (4 \, d x + 4 \, c\right )} + 6 \, b e^{\left (4 \, d x + 4 \, c\right )} - 4 \, b e^{\left (2 \, d x + 2 \, c\right )} + b\right )}^{2} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\mathrm {sinh}\left (c+d\,x\right )}^8}{{\left (a-b\,{\mathrm {sinh}\left (c+d\,x\right )}^4\right )}^3} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________